<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <link rel="stylesheet" href="bootstrap-5.3.0-dist/css/bootstrap.min.css">
</head>
<body>
  <div class="container">
    <form action="">
      <div>性别：</div>
      <div class="form-check-inline">
        <input class="form-check-input" type="radio" name="gender" value="0" id="male" checked>
        <label class="form-check-label" for="male">男</label>
      </div>
      <div class="form-check-inline">
        <input class="form-check-input" type="radio" name="gender" value="1" id="female">
        <label class="form-check-label" for="female">女</label>
      </div>
      <div>爱好：</div>
      <div class="form-check-inline">
        <input class="form-check-input" type="checkbox" name="hobby[]" value="0" id="sing">
        <label class="form-check-label" for="sing">唱歌</label>
      </div>
      <div class="form-check-inline">
        <input class="form-check-input" type="checkbox" name="hobby[]" value="1" id="swim" checked>
        <label class="form-check-label" for="swim">游泳</label>
      </div>
      <div class="form-check-inline">
        <input class="form-check-input" type="checkbox" name="hobby[]" value="2" id="recitation" checked>
        <label class="form-check-label" for="swim">朗诵</label>
      </div>
      <div class="form-check-inline">
        <input class="form-check-input" type="checkbox" name="hobby[]" value="3" id="mountain">
        <label class="form-check-label" for="swim">爬山</label>
      </div>
    </form>
  </div>
</body>
</html>